package util.AST.Comando;

import java.util.ArrayList;

import util.AST.Terminal.Valor;

public class Parametros extends ChamadaFuncao {
	
	private ArrayList <Valor> valores;
	
	public Parametros(ArrayList <Valor> valores){
		this.valores = valores;
		
	}
	
	
	public String toString(int level) {
		int nextLevel = level+5;
		StringBuffer str = new StringBuffer();
		str.append("Parametros\n");
		if ( this.valores != null ) {
			
			for (Valor param : this.valores) {
				str.append(super.getSpaces(nextLevel+5) + "|-");
				str.append(param.toString(nextLevel+5));
			}
		}
		
		return str.toString();
	}

}
